<h1 itemprop="name" class="titulo">
    <a href="<?php echo $this->urlbase;?>/quemsomos"><?php echo $this->result['PAG_TITULO']; ?></a>
</h1>
<div class="cnt-texto quemsomos">
    <div class="txt">
        <?php if(strlen($this->result['PAG_TEXTO']) > 5) echo '<div class="t1">'.$this->result['PAG_TEXTO'].'</div>'; ?>
        
        <?php if(strlen($this->result['PAG_TEXTO2']) > 5) echo '<div class="t2">'.$this->result['PAG_TEXTO2'].'</div>'; ?>

    </div>
    
    <div class="galeria">
        
        <div class="pikachoose">
            <ul id="pikame" >
            <?php 
            $arr_img = array();
            foreach ($this->gal as $row) { 
                $src = $row['GAL_SISSRC'];
                
                // <li><a href="#"><img src=""/></a><span>texto</span></li>
                $src = str_replace('_tb', '', $src);
                $arr_img[$src] = $src; 
            ?>
                <li><a href="#"><img src="<?php echo $this->urlbase.'/'.$src; ?>"/></a><span>eeee</span></li>
            <?php 
            
            }
            $imgs = glob($this->dir.$this->result['PAG_ID'].'_*_tb.*');
            asort($imgs);
            foreach ($imgs as $key => $src) 
            {
                // <li><a href="#"><img src=""/></a><span>texto</span></li>
                $src = str_replace('_tb', '', $src);
                if(array_search($src, $arr_img) == false){    
            ?>
                <li><img src="<?php echo $this->urlbase.'/'.$src; ?>"/></li>
            <?php }
            }  ?>     
           </ul>
        </div>

        
    </div>
    
</div>    
<link type="text/css" href="<?php echo $this->urlbase; ?>/public/media/js/pikachoose/styles/base.css" rel="stylesheet" />
<script type="text/javascript" src="<?php echo $this->urlbase; ?>/public/media/js/pikachoose/lib/jquery.jcarousel.min.js"></script>
<script type="text/javascript" src="<?php echo $this->urlbase; ?>/public/media/js/pikachoose/lib/jquery.pikachoose.min.js"></script>
<script type="text/javascript" src="<?php echo $this->urlbase; ?>/public/media/js/pikachoose/lib/jquery.touchwipe.min.js"></script>
<script language="javascript">
$(document).ready( function (){ $("#pikame").PikaChoose({ autoPlay:false }); });
</script>